package {{.PackageNameExtend}};
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;{{ range .Imports }}
import {{ . }};{{ end }}

/**
 * @Author {{.Author}}
 * @Date {{.Date}}
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "{{.ClassName}}{{.Suffix}}",description = "{{.TableComment}}")
public class {{.ClassName}}{{.Suffix}} implements Serializable {
    private static final long serialVersionUID = 1L;
{{range $index, $element := .Fields}}
    {{with $element.Desc}}
    /**
     * {{$element.Desc}}
     */
    @ApiModelProperty(value = "{{$element.Desc}}", required = {{$element.IsNotNull}}){{else}}
    @ApiModelProperty(value = "没有字段描述", required = {{$element.IsNotNull}}){{end}}{{if eq .Type  "Date"}}
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss"){{end}}
    private {{.Type}} {{$element.Column}};
{{ end }}

}
